package com.crealth.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.crealth.model.TeamModel;


public abstract interface TeamMapper {
	
	public abstract Integer insertTeam(TeamModel team);
    
	public abstract List<TeamModel> selectAllTeam();
    
	public abstract TeamModel selectTeamByID(
			@Param("teamID")int teamID);
	
	public abstract List<TeamModel> selectCompanyTeam(
			@Param("companyID")int companyID);
	
	public abstract Integer updateTeamInfo(TeamModel team);
	// 删除  大于 teamID 的团队
	public abstract Integer deleteTeamByGTTeamID(
			@Param("teamID")int teamID);
	public abstract Integer deleteTeamByTeamID(
			@Param("teamID")int teamID);
	
	
	public abstract Integer updateMonthPlanByTeamID(
			@Param("teamID")int teamID,
			@Param("monthPlan")int monthPlan);
	
	public abstract Integer updateWeekPlanByTeamID(
			@Param("teamID")int teamID,
			@Param("weekPlan")int weekPlan);
	
	public abstract Integer updateTeamLeaderByTeamID(
			@Param("teamID")int teamID,
			@Param("teamLeaderID")int teamLeaderID);
	
	
}
